#include <iostream>
#include <string>

using namespace std;

class Person
{
public:
	string name;
	int age;
};

class Coder : public Person
{
public:
	void wirte_code()
	{
		cout << "i can wirte code" << endl;
	}
};

void test01()
{
	Coder coder;
	coder.wirte_code();
	coder.age = 10;
	coder.name = "xiebang";
	cout << "my name is: " << coder.name << endl;
	cout << "i am " << coder.age << " years old";
}
int main()
{
	test01();
	return 0;
}